﻿package edu.pku.se.chocolate.datastructure;

/**
 * 消息类
 * @author Jas0n
 * 
 */
public class Message {
	
//	-ID : int
	public int ID;
//	-摘要 : string
	public String summary;
//	-链接 : string
	public String link;
//	-更新时间 : string
	public String time;
//	-标题 : string
	public String title;
//	-是否已收藏,0:未收藏,>0:收藏时刻
	public long favorite;
// 是否已读
	public int isRead;
	public Message(int ID, String summary,String link,String time,String title,long favorite,int isRead){
		this.ID = ID;
		this.summary = summary;
		this.link = link;
		this.time = time;
		this.title = title;
		this.favorite = favorite;
		this.isRead = isRead;
	}
	
	public String toString() {
		return  "+ ID: " + ID + "," +
				"+ summary: " + summary + "," +
				"+ link: " + link + "," +
				"+ time: " + time + "," +
				"+ title: " + title + "," +
				"+ favorite: " + favorite + "," +
				"+ isRead: " + isRead + ",,";
	}
}
